package com.xd.user.api.feign;


import com.xd.common.base.BaseFeign;
import com.xd.common.constant.ServiceConstant;
import com.xd.common.model.R;
import com.xd.user.api.entity.Dict;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * 用户角色(Role)表Feign
 *
 * @author hbx
 * @since 2019-12-30 18:30:02
 */
@FeignClient(value = ServiceConstant.USER_SERVICE, path = "dict")
public interface DictFeign extends BaseFeign<Dict, String> {


    /**
     * 删除字典以及关联字典数据
     *
     * @param id id
     * @return com.xd.common.model.R
     * @author huboxin
     * @description: TODO  删除字典以及关联字典数据
     * @date 11:33 2020/11/6
     **/
    @GetMapping("delete_dict/{id}")
    R deleteDict(@PathVariable String id);
}
